<?php
/**
 * Created by PhpStorm.
 * User: tengwei
 * Date: 2018/11/16
 * Time: 10:17 AM
 */

namespace common\sources\read\businesstaskcommodlog;

use common\models\craftsman\BusinessTaskCommodLog;

class BusinessTaskCommodLogAccess implements IBusinessTaskCommodLogAccess
{
    public function GetLog($id) {
        return BusinessTaskCommodLog::find()
            ->select("id,task_status,status_remark,remark,operator,create_time,update_time,task_id")
            ->where(['task_id' => $id])
            ->asArray()
            ->all();
    }
}